package com.enki.cigarettes.enums;

/**
 * @author WCS.Wang
 * @version V1.0
 * @Package com.enki.cigarettes.enums
 * @Name e-cigarettes-shop-api-module
 * @Description: TODO 发票枚举
 * @date 2018/10/8
 */
public class InvoiceEnums {

    /**
     * 发票类型
     */
    public enum InvoiceType {
        PERSONAL("个人", 0, "{'发票抬头':'TITLE','发票内容':'商品明细'}"), ENTERPRISE("企业", 1, "{'发票抬头':'TITLE','纳税人识别号':'TAXCODE','发票内容':'商品明细'}"), INVOICE("增值税发票", 2, "{'单位名称':'TITLE','纳税人识别号':'TAXCODE','注册地址':'ADDRESS','注册电话':'TELEPHONE','开户银行':'BACKNAME','银行账户':'BACKCODE','发票内容':'商品明细'}");


        private String name;
        private int type;
        private String content;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        InvoiceType(String name, int type) {
            this.name = name;
            this.type = type;
        }

        InvoiceType(String name, int type, String content) {
            this.name = name;
            this.type = type;
            this.content = content;
        }
    }

    /**
     * 申请发票状态
     */
    public enum InvoiceStatusApply {
        APPLY("待申请", 0), APPLICATION("申请中", 1), FINISH("完成开票", 2);

        private String name;
        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        InvoiceStatusApply(String name, int status) {
            this.name = name;
            this.status = status;
        }
    }

    /**
     * 补开发票状态
     */
    public enum InvoiceStatus {

        APPLICATION("申请中", 0), FINISH("完成开票", 1);

        private String name;
        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        InvoiceStatus(String name, int status) {
            this.name = name;
            this.status = status;
        }
    }

}
